package com.muyu.danmo.service.impl;


import com.muyu.danmo.mapper.DanmoOnlineUpgradeMapper;
import com.muyu.danmo.service.IDanmoOnlineUpgradeService;
import com.muyu.system.domain.DanmoOnlineUpgrade;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 版本更新Service业务层处理
 * 
 * @author yangle
 * @date 2025-04-07
 */
@Service
public class DanmoOnlineUpgradeServiceImpl implements IDanmoOnlineUpgradeService
{
    @Autowired
    private DanmoOnlineUpgradeMapper danmoOnlineUpgradeMapper;

    /**
     * 查询版本更新
     * 
     * @param id 版本更新主键
     * @return 版本更新
     */
    @Override
    public DanmoOnlineUpgrade selectDanmoOnlineUpgradeById(String id)
    {
        return danmoOnlineUpgradeMapper.selectDanmoOnlineUpgradeById(id);
    }

    /**
     * 查询版本更新列表
     * 
     * @param danmoOnlineUpgrade 版本更新
     * @return 版本更新
     */
    @Override
    public List<DanmoOnlineUpgrade> selectDanmoOnlineUpgradeList(DanmoOnlineUpgrade danmoOnlineUpgrade)
    {
        return danmoOnlineUpgradeMapper.selectDanmoOnlineUpgradeList(danmoOnlineUpgrade);
    }

    /**
     * 新增版本更新
     * 
     * @param danmoOnlineUpgrade 版本更新
     * @return 结果
     */
    @Override
    public int insertDanmoOnlineUpgrade(DanmoOnlineUpgrade danmoOnlineUpgrade)
    {
        return danmoOnlineUpgradeMapper.insertDanmoOnlineUpgrade(danmoOnlineUpgrade);
    }

    /**
     * 修改版本更新
     * 
     * @param danmoOnlineUpgrade 版本更新
     * @return 结果
     */
    @Override
    public int updateDanmoOnlineUpgrade(DanmoOnlineUpgrade danmoOnlineUpgrade)
    {
        return danmoOnlineUpgradeMapper.updateDanmoOnlineUpgrade(danmoOnlineUpgrade);
    }

    /**
     * 批量删除版本更新
     * 
     * @param ids 需要删除的版本更新主键
     * @return 结果
     */
    @Override
    public int deleteDanmoOnlineUpgradeByIds(String[] ids)
    {
        return danmoOnlineUpgradeMapper.deleteDanmoOnlineUpgradeByIds(ids);
    }

    /**
     * 删除版本更新信息
     * 
     * @param id 版本更新主键
     * @return 结果
     */
    @Override
    public int deleteDanmoOnlineUpgradeById(String id)
    {
        return danmoOnlineUpgradeMapper.deleteDanmoOnlineUpgradeById(id);
    }
}
